package com.itheima.dao;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

public interface UserDao {

    @Select("select * from t_user where username = #{s}")
    User findUserByUsername(String s);
	
	@Delete("delete from t_user where id = #{id}")
    void delete(Integer id);
    @Delete("delete from t_user_role where user_id = #{id}")
    void deleteUserByRole(Integer id);
	

}
